package com.zoe.app.contextHolder;

import cn.hutool.core.thread.ThreadUtil;

/**
 * @author zoe.Zhang
 * @date 2022/06/28
 * @description
 */
public class ContextHolder {
    private static final ThreadLocal<String> threadLocal = ThreadUtil.createThreadLocal(false);

    public static String getMsg() {
        return threadLocal.get();
    }

    public static void removeMsg() {
        threadLocal.remove();
    }

    public static void setMsg(String str) {
        threadLocal.set(str);
    }
}
